case $CONFIG in
    '') . config.sh ;;
esac
outputfile=ryork.cf
rm -f $outputfile.$$
echo "Creating $outputfile (with variable substitutions)"
if cat >$outputfile.$$ <<!GROK!THIS!
# RCSid[] = "@(#)$Header: ryork.SH,v 3.1 86/12/24 10:44:01 pb Rel $"
#
##################################################
##################################################
##############
############## configure for york directory (D2.2)
##############
##################################################
##################################################

# the directory to search for files in

directory $datadir

# enable tracing
verbose 1

# output format (overridden)
output forward short york

# the comment file to filter
comment hdr.file

#		context		subnet
context 	FTP		JANET
context 	FTP		PSS
context 	JTMP		JANET
context 	JTMP		PSS
#O context 	JTMP-FILES	JANET
#P context 	JTMP-FILES	PSS
#O context 	JTMP-REG	JANET
#P context 	JTMP-REG	PSS
context 	Mail		JANET
context 	Mail		PSS
#O context 	Mail-telex	TELEX
#O context 	Mail-x29	JANET
#P context 	Mail-x29	PSS
context 	Ts29		JANET
context 	Ts29		PSS
context 	X29		JANET
context 	X29		PSS
#O context 	YBTS		JANET
#P context 	YBTS		PSS
#O context 	YBTS-NODE	JANET
#P context 	YBTS-NODE	PSS
context 	DESC		JANET	
!GROK!THIS!
then
	: OK
else
	echo "	" Failed to create $outputfile.$$
	exit 1
fi
if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
then
	rm -f $outputfile.$$
	echo "	" $outputfile not affected
elif mv $outputfile.$$ $outputfile
then
	echo "	" $outputfile updated
else
	echo "+++	" $outputfile left in $outputfile.$$
fi
